#!/bin/sh

#cd $HOME/source/Physics/fdm-chap2
clear

make clean

#if the below make is successful then have to run the exe and the gnuplot command.

if make fdm1d
then
	echo "build successful, executing a.out"
	if ./a.out
	then
		 gnuplot plotNucPot.gp 2> gnuploterrors.gnulog
	else
		echo "failure in execution!"
	fi
else
	echo "make fail!!"
fi
